<?php
namespace app\controller;

use app\BaseController;

class Error extends BaseController
{
    public function __call($method,$args)
    {
        return $this->request->isAjax() || $this->request->isPost() ? json(['code'=>404,'msg'=>'page not found'],404) : '<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>404</title>
    <style>
    html,body{
    height: 99%;
    }
    .content{
        text-align: center;
        height: 100%;
    }
    .content img{
    max-height: 100%;
    max-width: 40%;
    }
</style>
</head>
<body><div class="content"><img src="/static/image/404.svg" /></div></body>
</html>';
    }
}
